package com.fsai.cms.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.fsai.cms.base.BaseEntity;

/**
 * 轮播图管理对象 cms_carousel_pic
 * 
 * @author jaffe
 * @date 2021-03-11
 */
public class CmsCarouselPic extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/** 主键ID */
	private Long ccpId;

	/** 标题 */
	private String picTitle;

	/** 图片 */
	private String picImg;

	/** 所属处室 */
	private Long orgId;

	/** 是否外链（0是 1否） */
	private String enableLink;

	/** 访问地址 */
	private String linkUrl;

	/** 图片描述 */
	private String picDesc;

	/** 排序 */
	private Integer sortIndex;

	/** 启用状态（0启用 1关闭） */
	private String status;

	/** 机构对象 */
	private BaseOrg baseOrg;

	public BaseOrg getBaseOrg() {
		if (baseOrg == null) {
			baseOrg = new BaseOrg();
		}
		return baseOrg;
	}

	public void setBaseOrg(BaseOrg baseOrg) {
		this.baseOrg = baseOrg;
	}

	public void setCcpId(Long ccpId) {
		this.ccpId = ccpId;
	}

	public Long getCcpId() {
		return ccpId;
	}

	public void setPicTitle(String picTitle) {
		this.picTitle = picTitle;
	}

	public String getPicTitle() {
		return picTitle;
	}

	public void setPicImg(String picImg) {
		this.picImg = picImg;
	}

	public String getPicImg() {
		return picImg;
	}

	public void setOrgId(Long orgId) {
		this.orgId = orgId;
	}

	public Long getOrgId() {
		return orgId;
	}

	public void setEnableLink(String enableLink) {
		this.enableLink = enableLink;
	}

	public String getEnableLink() {
		return enableLink;
	}

	public void setLinkUrl(String linkUrl) {
		this.linkUrl = linkUrl;
	}

	public String getLinkUrl() {
		return linkUrl;
	}

	public void setPicDesc(String picDesc) {
		this.picDesc = picDesc;
	}

	public String getPicDesc() {
		return picDesc;
	}

	public void setSortIndex(Integer sortIndex) {
		this.sortIndex = sortIndex;
	}

	public Integer getSortIndex() {
		return sortIndex;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getStatus() {
		return status;
	}

	@Override
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("ccpId", getCcpId())
				.append("picTitle", getPicTitle()).append("picImg", getPicImg()).append("orgId", getOrgId())
				.append("enableLink", getEnableLink()).append("linkUrl", getLinkUrl()).append("picDesc", getPicDesc())
				.append("sortIndex", getSortIndex()).append("status", getStatus()).append("createBy", getCreateBy())
				.append("createTime", getCreateTime()).append("updateBy", getUpdateBy())
				.append("updateTime", getUpdateTime()).append("remark", getRemark()).toString();
	}
}
